package com.knife.oauth.constants;

/**
 * @author tianhao.luo@hand-china.com
 * @version 1.0
 * @date 2022年04月16日 星期六 5:43 下午
 * @description
 * @since 1.0
 */
public interface KnifeOauthConstant {

    /**
     * 公钥
     * @description
     * @since 1.0
     * @version 1.0
     * @author tianhao.luo@hand-china.com
     * @date 2022/4/16 7:13 下午
     */
    String rsaPublcKeyBase64 = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjuwBuN0erPqmzEswjDlhktNUKsbCiXmeVo8x1o0lzR0CkBjhhmr6UK/+7kLoprj1zrqPU5ZVaIZXUZR6C1I9lwRYUA9Eg/gbdNus9wor+hPuuIG27d3zSJEU1QSguusVz1ZbueUX+qoSmlAFP2ObVR5UMHPa5Xy8p+8CTZ1M2PKzxbKY/WhC81RrkEgqL8W0UO33jlSaOkrq8yv33D4d01TmFFya7h7a/tZBTz7/N1c5zUWMynk5yaznjgnIKo7qOTaQa5r4qi3bXqYwNraPQhEJA2LqBSzAUIchH3Wc92a86Z8cJPP29PdMIhrkqJ7AztyDaxv2EnwloJ8pramS0wIDAQAB";


    /**
     * 私钥
     * @description
     * @since 1.0
     * @version 1.0
     * @author tianhao.luo@hand-china.com
     * @date 2022/4/16 7:13 下午
     */
    String rsaPrivateKeyBase64 = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCO7AG43R6s+qbMSzCMOWGS01QqxsKJeZ5WjzHWjSXNHQKQGOGGavpQr/7uQuimuPXOuo9TllVohldRlHoLUj2XBFhQD0SD+Bt026z3Civ6E+64gbbt3fNIkRTVBKC66xXPVlu55Rf6qhKaUAU/Y5tVHlQwc9rlfLyn7wJNnUzY8rPFspj9aELzVGuQSCovxbRQ7feOVJo6SurzK/fcPh3TVOYUXJruHtr+1kFPPv83VznNRYzKeTnJrOeOCcgqjuo5NpBrmviqLdtepjA2to9CEQkDYuoFLMBQhyEfdZz3Zrzpnxwk8/b090wiGuSonsDO3INrG/YSfCWgnym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5my4fqCnzVExigFmzXGDizomihLH5fxbv57ZJ/F6Eb1uHCR09i4+3J7TotTfiu3JkXxmAgBSAyUz7/WDZlC+s3fdRCrwfvZIWcJ3BdIGa9REnNVFOqHT6XRrh9t1xrMhNOB+sWrZGLSoCHVJzE42m7s6SA";


    String TOKEN = "token";

    Integer REDIS_DB = 1;


    default String tokenKey(String key){
        return "knife:oauth:token:"+key;
    }

    default String tokenUserKey(String key){
        return "knife:oauth:token:user:"+key;
    }

    enum KnifeFilterOrder{

        /**
         * 黑名单
         * @description
         * @since 1.0
         * @version 1.0
         * @author tianhao.luo@hand-china.com
         * @date 2022/4/16 7:14 下午
         */
        BLACK_LIST(10),

        ;

        KnifeFilterOrder(Integer order) {
            this.order = order;
        }

        private Integer order;

        public Integer getOrder() {
            return order;
        }
    }
}
